import xadmin

from .models import *
class CityDictAdmin(object):
    list_display = ['name','desc','add_time']
    search_fields = ['name','desc']
    list_filter = ['name','desc','add_time']



class CourseOrgAdmin(object):
    list_display = ['name','desc','click_nums','fav_nums','address','add_time']
    search_fields = ['name','desc','click_nums','fav_nums','address']
    list_filter = ['name','desc','click_nums','fav_nums','address','add_time']


class TeacherAdmin(object):
    list_display = ['org','name','work_company','work_position']
    search_fields = ['org','name','work_company','work_position']
    list_filter = ['org','name','work_company','work_position']


xadmin.site.register(CityDict,CityDictAdmin)
xadmin.site.register(CourseOrg,CourseOrgAdmin)
xadmin.site.register(Teacher,TeacherAdmin)